package buttons;

import view.DisplayList;
import controllers.ControlManager;
import buttons.control.C_DoubleSlider;
import buttons.view.V_DoubleSlider;

public class DoubleSlider extends Button
{
  public DoubleSlider(DisplayList v, ControlManager c, String n, float xWidth, float yHeight)
  {
     super(v, c, n, xWidth, yHeight);
  }

  public DoubleSlider(DisplayList v, ControlManager c, String n, float xWidth, float yHeight, float xPos, float yPos)
  {
     super(v, c, n, xWidth, yHeight, xPos, yPos);
  }
  
  @Override
  protected void generateButtons(DisplayList v, ControlManager c, String n, float xWidth, float yHeight)
  {
    vButton = new V_DoubleSlider(n, xWidth, yHeight);
    cButton = new C_DoubleSlider((V_DoubleSlider)vButton);
    addToManagerLists(v, c);
  }
  
  public float getXPercent() { // converts and returns a value between 0 and 1.0 for the the first slider
    return ((V_DoubleSlider)vButton).getXPercent();
  }
  public float getYPercent() { // converts and returns a value between 0 and 1.0 for the the second slider
    return ((V_DoubleSlider)vButton).getYPercent();
  }
}
